package com.mervin.patterns.builder;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-18 01:01
 * @Description:
 ***************************************/
public class Client {

    public static void main(String[] args) {
        //流水线生产
        AppleBuilder appleBuilder = new AppleBuilder();
        //找到管理者
        FruitDirector fruitDirector = new FruitDirector();
        //获取产品
        Fruit fruit = fruitDirector.constructFruit(appleBuilder);
        System.out.println(fruit);
    }
}
